package com.dubbo.consumer;

import com.dubbo.provider.service.DemoService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;




/**
 * @author Jack
 * @description: TODO
 * @date 2021/11/4 14:06
 */
@Component(value = "demoServiceImpl")
public class DemoServiceImpl implements DemoService{

    @DubboReference
    private DemoService demoService;

    public void sayHello() {
        this.demoService.sayHello();

    }
}
